


<?php
include 'wp-load.php';
$blogusers = get_users('role=subscriber');
    foreach ($blogusers as $user) {
        $plan = get_user_meta($user->ID,'tgtinfo_plan',true);
        if (stripos($plan,'Ind') !== false){
            update_user_meta($user->ID,'tgtinfo_max_notebk',2);
        } else {
            update_user_meta($user->ID,'tgtinfo_max_notebk',0);
        }
    }
echo count($blogusers);
?>